package com.tyqx.service.Impl;

import com.tyqx.bean.model.EthIncomeList;
import com.tyqx.bean.model.EthPoolInfo;
import com.tyqx.bean.model.StopBlockInterval;
import com.tyqx.mapper.EthIncomeListMapper;
import com.tyqx.mapper.EthPoolInfoMapper;
import com.tyqx.service.EthIncomeListService;
import com.tyqx.service.EthPoolInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service("ethIncomeListService")
public class EthIncomeListServiceImpl implements EthIncomeListService {


    @Resource
    private EthIncomeListMapper ethIncomeListMapper;

    @Override
    public Integer insert(EthIncomeList ethIncomeList) {
        return ethIncomeListMapper.insert(ethIncomeList);
    }

    @Override
    public EthIncomeList selectEthIncomeListByProductDate(Date productDate,String userCode) {
        return ethIncomeListMapper.selectEthIncomeListByProductDate(productDate,userCode);
    }

    @Override
    public List<EthIncomeList> selectEthIncomeLists() {
        return ethIncomeListMapper.selectEthIncomeLists();
    }

    @Override
    public List<EthIncomeList> selectEthIncomeListsByUserCodeAndPage(String userCode, Integer pageIndex, Integer pageSize) {
        return ethIncomeListMapper.selectEthIncomeListsByUserCodeAndPage(userCode,pageIndex,pageSize);
    }

    @Override
    public Integer selectCountByUserCodeAndPage(String userCode, String pageNum, String pageSize) {
        return ethIncomeListMapper.selectCountByUserCodeAndPage(userCode, pageNum, pageSize);
    }


    @Override
    public Integer selectCountByUserCode(String userCode) {
        return ethIncomeListMapper.selectCountByUserCode(userCode);
    }

    @Override
    public List<EthIncomeList> selectEthIncomeListsByUserCode(String userCode) {
        return ethIncomeListMapper.selectEthIncomeListsByUserCode(userCode);
    }

    @Override
    public Integer selectByProductDate(Date productDate) {
        return ethIncomeListMapper.selectByProductDate(productDate);
    }

    @Override
    public Integer update(EthIncomeList ethIncomeList) {
        return ethIncomeListMapper.update(ethIncomeList);
    }
}
